#define _CRT_SECURE_NO_WARNINGS 1
#include"tree.h"
int main()
{
	TN* root = TreeBuilt();
	printf("Tree_size: %d\n", Treesize(root));
	printf("Tree_h: %d\n", Tree_depth(root));
	printf("Tree_1: %d\n", K_Node(root,1));
	printf("Tree_2: %d\n", K_Node(root,2));
	printf("Tree_3: %d\n", K_Node(root,3));
	printf("Tree_4: %d\n", K_Node(root,4));
	if (judge(root))
	{
		printf("111");
	}
	else
	{
		printf("0000");
	}
	printf("%d", prefind(root, 2)->val);
	return 0;
}